Localizing the GHC Suspension Test

نویسنده

  • Hamish Taylor
چکیده

Existing proposals for implementing the run-time suspension test for GHC concentrate upon suspending unifications in the bodies of clauses being used to evaluate guard literals. However, by making simple alterations to the guard and adding special primitives to it to localise the requirement to suspend to a primitive in the guard, unifications in the bodies of clauses may proceed without being subject to any suspension check. The result is a clause to clause translation technique from full GHC to a safe variant language, the parallel subset of kernel Parlog, where no unification in the body of a clause suspends. Emulating a translated clause in this language suffices to emulate the original GHC clause. This technique simplifies the implementation of full GHC and allows Parlog implementations with moderate extensions to include a run-time guard safety check where compile-time safety analysis is problematic to apply correctly. Ke ywords GHC, Parlog, suspension, guard safety, parallel execution

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Ontogeny of a social custom in wild chimpanzees: age changes in grooming hand-clasp at Mahale.

Among cultural behaviors of chimpanzees, the developmental processes of complex skills involved in tool use are relatively well known. However, few studies have examined the ontogeny of social customs that do not require complex skills. Thus, in this study, we describe the developmental process of the grooming hand-clasp (GHC), one of the well-known social customs of chimpanzees at Mahale. We h...

متن کامل

The Glasgow Haskell Compiler

GHC is now over 20 years old, and has been under continuous active development since its inception. Today, GHC releases are downloaded by hundreds of thousands of people, the online repository of Haskell libraries has over 3,000 packages, GHC is used to teach Haskell in many undergraduate courses, and there are a growing number of instances of Haskell being depended upon commercially. Over its ...

متن کامل

Proving Termination of GHC Programs 1

A transformational approach for proving termination of parallel logic programs such as GHC programs is proposed. A transformation from GHC programs to term rewriting systems is developed; it exploits the fact that uniications in GHC-resolution correspond to matchings. The termination of a GHC program for a class of queries is implied by the termination of the resulting rewrite system. This appr...

متن کامل

Introduction to Guarded Horn Clauses

This paper informally introduces a programming language Guarded Horn Clauses (GHC) through program examples. GHC is a parallel programming language devised from investigation of the basic framework and practice of logic programming. It has introduced the guard construct with simple semantics into logic programming to express interacting processes. A GHC program naturally expresses parallelism i...

متن کامل

Guarded Horn Clauses

This thesis introduces the programming language Guarded Horn Clauses which is abbreviated to GHC. Guarded Horn Clauses was born from the examination of existing logic programming languages and logic programming in general, with special attention paid to parallelism. The main feature of GHC is its extreme simplicity compared with the other parallel programming languages. GHC is a restriction of ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1988